home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 24 / Mac Magazin and MacEasy Magazine CD - Issue 24.iso / Wissenschaft & Technik / Joint / Examples / Stewart Platform / Stewart.Exp < prev    next >
Text File  |  1995-10-25  |  3KB  |  183 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "textures.inc"
  4.  
  5. light_source {<-2,3,-2> color White} // Grundlichtquelle
  6.  
  7. camera {
  8.    location <-2,1,-4>
  9.    direction<0,0,3.2>
  10.    look_at <0,0.55,0>
  11. }
  12.  
  13.  
  14. #declare texpl=texture{pigment {color Blue} finish{phong 1 ambient 0.4}}
  15. #declare texbase=texture{pigment {color Red} finish{phong 1 ambient 0.4}}
  16. #declare texsp=texture{pigment {color Red} finish{phong 1 ambient 0.4}}
  17. #declare texac1=texture{pigment {color LightSteelBlue} finish{phong 1 ambient 0.4}}
  18. #declare texac2=texture{pigment {color Silver}
  19. finish{phong 1 ambient 0.4}}
  20.  
  21. #declare rsp=0.025
  22. #declare rz1=0.02
  23. #declare rz2=0.012
  24. #declare rc1=0.012
  25.  
  26. plane{
  27. -y,0.08
  28. texture{pigment {color Gray} finish{ambient 0.4}}
  29. }
  30.  
  31. cylinder{
  32. <0.35526,0.78176,0.63349>,<0.5,0,0>,rz2
  33. texture{texac2}
  34. }
  35.  
  36. cylinder{
  37. <-0.58847,0.45374,0.59128>,<0,0,0.86603>,rz2
  38. texture{texac2}
  39. }
  40.  
  41. cylinder{
  42. <-0.069753,0.59418,-0.25205>,<-0.5,0,0>,rz2
  43. texture{texac2}
  44. }
  45.  
  46. cylinder{
  47. <0.35526,0.78176,0.63349>,(<0.35526,0.78176,0.63349>+<0.5,0,0>)/2,rz1
  48. texture{texac1}
  49. }
  50. cylinder{
  51. <-0.58847,0.45374,0.59128>,(<-0.58847,0.45374,0.59128>+<0,0,0.86603>)/2,rz1
  52. texture{texac1}
  53. }
  54. cylinder{
  55. <-0.069753,0.59418,-0.25205>,(<-0.069753,0.59418,-0.25205>+<-0.5,0,0>)/2,rz1
  56. texture{texac1}
  57. }
  58.  
  59. cylinder{
  60. <-0.069753,0.59418,-0.25205>,<0.5,0,0>,rz2
  61. texture{texac2}
  62. }
  63.  
  64. cylinder{
  65. <0.35526,0.78176,0.63349>,<0,0,0.86603>,rz2
  66. texture{texac2}
  67. }
  68.  
  69. cylinder{
  70. <-0.58847,0.45374,0.59128>,<-0.5,0,0>,rz2
  71. texture{texac2}
  72. }
  73.  
  74. cylinder{
  75. <-0.069753,0.59418,-0.25205>,(<-0.069753,0.59418,-0.25205>+<0.5,0,0>)/2,rz1
  76. texture{texac1}
  77. }
  78. cylinder{
  79. <0.35526,0.78176,0.63349>,(<0.35526,0.78176,0.63349>+<0,0,0.86603>)/2,rz1
  80. texture{texac1}
  81. }
  82. cylinder{
  83. <-0.58847,0.45374,0.59128>,(<-0.58847,0.45374,0.59128>+<-0.5,0,0>)/2,rz1
  84. texture{texac1}
  85. }triangle{
  86. <0.35526,0.78176,0.63349>,
  87. <-0.58847,0.45374,0.59128>,
  88. <-0.069753,0.59418,-0.25205>
  89. texture{texpl}
  90. }
  91.  
  92. triangle{
  93. <0.32263,0.87619,0.62915>,
  94. <-0.6211,0.54817,0.58694>,
  95. <-0.10238,0.68861,-0.25639>
  96. texture{texpl}
  97. }
  98.  
  99. triangle{
  100. <0.35526,0.78176,0.63349>,
  101. <0.32263,0.87619,0.62915>,
  102. <-0.58847,0.45374,0.59128>
  103. texture{texpl}
  104. }
  105.  
  106. triangle{
  107. <0.32263,0.87619,0.62915>,
  108. <-0.58847,0.45374,0.59128>,
  109. <-0.6211,0.54817,0.58694>
  110. texture{texpl}
  111. }
  112.  
  113. triangle{
  114. <-0.58847,0.45374,0.59128>,
  115. <-0.6211,0.54817,0.58694>,
  116. <-0.069753,0.59418,-0.25205>
  117. texture{texpl}
  118. }
  119.  
  120. triangle{
  121. <-0.6211,0.54817,0.58694>,
  122. <-0.069753,0.59418,-0.25205>,
  123. <-0.10238,0.68861,-0.25639>
  124. texture{texpl}
  125. }
  126.  
  127. triangle{
  128. <-0.069753,0.59418,-0.25205>,
  129. <-0.10238,0.68861,-0.25639>,
  130. <0.35526,0.78176,0.63349>
  131. texture{texpl}
  132. }
  133.  
  134. triangle{
  135. <-0.10238,0.68861,-0.25639>,
  136. <0.35526,0.78176,0.63349>,
  137. <0.32263,0.87619,0.62915>
  138. texture{texpl}
  139. }
  140.  
  141. sphere{
  142. <0.35526,0.78176,0.63349>,rsp
  143. texture{texsp}
  144. }
  145.  
  146. sphere{
  147. <-0.58847,0.45374,0.59128>,rsp
  148. texture{texsp}
  149. }
  150.  
  151. sphere{
  152. <-0.069753,0.59418,-0.25205>,rsp
  153. texture{texsp}
  154. }
  155. sphere{
  156. <0.5,0,0>,rsp
  157. texture{texsp}
  158. }
  159.  
  160. sphere{
  161. <0,0,0.86603>,rsp
  162. texture{texsp}
  163. }
  164.  
  165. sphere{
  166. <-0.5,0,0>,rsp
  167. texture{texsp}
  168. }
  169.  
  170.  
  171. cone{
  172. <0.5,0,0>,rc1,<0.5,-0.1,0>,rsp
  173. texture{texbase}
  174. }
  175. cone{
  176. <0,0,0.86603>,rc1,<0,-0.1,0.86603>,rsp
  177. texture{texbase}
  178. }
  179. cone{
  180. <-0.5,0,0>,rc1,<-0.5,-0.1,0>,rsp
  181. texture{texbase}
  182. }
  183.